import request from '@/utils/request'

// 查询上货保证金支付记录列表
export function listMarketBondRecord(query) {
  return request({
    url: '/mall/marketBondRecord/list',
    method: 'get',
    params: query
  })
}

// 查询上货保证金支付记录详细
export function getMarketBondRecord(id) {
  return request({
    url: '/mall/marketBondRecord/' + id,
    method: 'get'
  })
}

// 新增上货保证金支付记录
export function addMarketBondRecord(data) {
  return request({
    url: '/mall/marketBondRecord',
    method: 'post',
    data: data
  })
}

// 修改上货保证金支付记录
export function updateMarketBondRecord(data) {
  return request({
    url: '/mall/marketBondRecord',
    method: 'put',
    data: data
  })
}

// 删除上货保证金支付记录
export function delMarketBondRecord(id) {
  return request({
    url: '/mall/marketBondRecord/' + id,
    method: 'delete'
  })
}
